package io.forlove.myrtle.syn;

import io.forlove.myrtle.event.FileAddEvent;
import io.forlove.myrtle.event.FileDeleteEvent;
import io.forlove.myrtle.event.FileModifyEvent;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Component
public class FileWatchlistener {

    @EventListener
    public void fileAddEvent(FileAddEvent event)
    {
        System.out.println("注解事件监听-："+ event.getPath());
    }

    @EventListener
    public void fileModifyEvent(FileModifyEvent event)
    {
        System.out.println("注解事件监听-："+ event.getPath());
    }

    @EventListener
    public void fileDeleteEvent(FileDeleteEvent event)
    {
        System.out.println("注解事件监听-："+ event.getPath());
    }

}
